TEX = xelatex
TEX_FLAGS = -output-driver="xdvipdfmx -q -E" 
PYTHON = python
XCP = xcp.py

calligrapher.pdf: calligrapher.true.pdf
	mv $< $@

calligrapher.true.pdf: calligrapher.true.tex
	${TEX} ${TEX_FLAGS} $<

calligrapher.true.tex: calligrapher.tex
	${PYTHON} ${XCP} $< > $@

